package com.xhui.vimarket.zkplus.zul.attr.evt;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.metainfo.ComponentInfo;
com.xhui.vimarket.zkplusui.vimarket.zkplus.zul.attr.mod.impl.AttrTimeComp;

/**
 * .
 * 
 * @版权：福富软件 版权所有 (c) 2011
 * @author wuyx
 * @version Revision 1.0.0
 * @see:
 * @创建日期：2011-5-12
 * @功能说明：
 * 
 */
public class AttrTimeResetCompoer extends AttrBaseComposer {
    
    /**
     * serialVersionUID.
     */
    private static final long serialVersionUID = 7139476801300781303L;
    
    @Override
    public ComponentInfo doBeforeCompose(final Page page, final Component comp,
        final ComponentInfo info) {
        return info;
    }
    
    @Override
    public void doAfterCompose(final Component comp) throws Exception {
        super.doAfterCompose(comp);
    }
    
    /**
     * onClick.
     * 
     * @param event Event
     * @author wuyx
     * 2011-5-12 wuyx 
     */
    public void onClick(Event event) {
        Component rootComp = this.self.getParent().getParent();
        AttrTimeComp.reset(rootComp);
    }
}
